using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication11.Models.Mapping
{
    public class bp_standardMap : EntityTypeConfiguration<bp_standard>
    {
        public bp_standardMap()
        {
            // Primary Key
            this.HasKey(t => t.bp_standard_id);

            // Properties
            this.Property(t => t.bp_standard_name)
                .HasMaxLength(50);

            this.Property(t => t.bp_standard_desc)
                .HasMaxLength(100);

            // Table & Column Mappings
            this.ToTable("bp_standard");
            this.Property(t => t.bp_standard_id).HasColumnName("bp_standard_id");
            this.Property(t => t.bp_standard_name).HasColumnName("bp_standard_name");
            this.Property(t => t.bp_standard_desc).HasColumnName("bp_standard_desc");
            this.Property(t => t.disable_flag).HasColumnName("disable_flag");
            this.Property(t => t.start_date).HasColumnName("start_date");
            this.Property(t => t.end_date).HasColumnName("end_date");
        }
    }
}
